/*
 * Copyright (c) 2024-2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION!

import { int32, int64, float32 } from "@koalaui/common"
import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop"
import { NodeAttach, remember } from "@koalaui/runtime"
import { CommonMethod } from "./ArkCommonInterfaces"
import { Dimension, ResourceColor } from "./ArkUnitsInterfaces"
import { Callback_Number_Number_PanelMode_Void, Callback_Number_Void, Callback_PanelMode_Void } from "./SyntheticDeclarations"
export enum PanelMode {
    MINI = 0,
    Mini = 0,
    HALF = 1,
    Half = 1,
    FULL = 2,
    Full = 2
}
export enum PanelType {
    MINIBAR = 0,
    Minibar = 0,
    FOLDABLE = 1,
    Foldable = 1,
    TEMPORARY = 2,
    Temporary = 2,
    CUSTOM = 3
}
export enum PanelHeight {
    WRAP_CONTENT = "wrapContent"
}
export type PanelInterface = (show: boolean) => PanelAttribute;
export interface PanelAttribute extends CommonMethod<PanelAttribute> {
    mode: PanelMode;
    type: PanelType;
    dragBar: boolean;
    customHeight: Dimension | PanelHeight;
    fullHeight: number | string;
    halfHeight: number | string;
    miniHeight: number | string;
    show: boolean;
    backgroundMask: ResourceColor;
    showCloseIcon: boolean;
    onChange: ((width: number,height: number,mode: PanelMode) => void);
    onHeightChange: ((index: number) => void);
}
